/* 
   运营管理
*/
import Ajax from 'lib/Ajax';

export default {
    //登录
    distLogin(params){
        return Ajax({
            url: '/api/dist_login',
            method: 'get',
            data: params
        });
    },
    //登录页面的背景
    enterpriseBcinfo(params){
        return Ajax({
            url: '/api/menu/enterprise_bcinfo',
            method: 'get',
            data: params
        });
    },
    //找回密码
    sendMsgPwd(params){
        return Ajax({
            url: '/api/pwd/sendMsg',
            method: 'get',
            data: params
        });
    },
    //找回密码发送
    sendPwdPwd(params){
        return Ajax({
            url: '/api/pwd/sendPwd',
            method: 'get',
            data: params
        });
    },
    resetPassword(params){
        return Ajax({
          url: '/resetPassword',
          method: 'post',
          data: params
        });
    },
    queryStructTree(params){
        return Ajax({
            url: '/api/organ/query_struct_tree',
            method: 'get',
            params: params
        });
    },
    queryStructs(params){
        return Ajax({
            url: '/api/organ/query_structs',
            method: 'get',
            params: params
        });
    },
    //新增组织
    addStruct(params){
        return Ajax({
            url: '/api/organ/add_struct',
            method: 'post',
            data: params
        });
    },
    updateStruct(params){
        return Ajax({
            url:'/api/organ/update_struct',
            method:'post',
            data:params
        });
    },
    //删除组织
    deleteStruct(params){
        return Ajax({
            url: '/api/organ/delete_structs',
            method: 'post',
            data: params
        });
    },
    // 用户管理-组织机构管理-分配楼盘
    divideHouses(params){
        return Ajax({
            url: '/api/organ/divide_houses',
            method: 'post',
            data: params
        });
    },
    // 用户管理-新增用户
    addUser(params){
        return Ajax({
            url: '/api/newuser/add_user',
            method: 'post',
            data: params
        });
    },
    //查看单个用户
    querySingleUser(params){
        return Ajax({
            url: '/api/newuser/query_single_user',
            method: 'get',
            data: params
        });
    },
    //修改单个用户
    updateuser(params){
        return Ajax({
            url: '/api/newuser/update_user',
            method: 'post',
            data: params
        });
    },
    //重置用户密码
    resetUserPassword(params){
        return Ajax({
            url: '/api/newuser/reset_password',
            method: 'post',
            data: params
        });
    },
    //删除用户
    deleteUser(params){
        return Ajax({
            url: '/api/newuser/delete_user',
            method: 'post',
            data: params
        });
    },
    //修改用户表状态
    batchUpdateUser(params){
        return Ajax({
            url: '/api/newuser/batch_update_user',
            method: 'post',
            data: params
        });
    },
    //修改启用，禁用组织
    batchUpdateStruct(params){
        return Ajax({
            url: '/api/organ/batch_update_struct',
            method: 'post',
            data: params
        });
    },
    //首页的
    distHome(params){
        return Ajax({
            url: '/api/dist_home',
            method: 'get',
            params: params
        });
    },
    //选择楼盘列表
    queryHouses(params){
        return Ajax({
            url: '/api/organ/query_houses',
            method: 'get',
            data: params
        });
    },
    //查看组织详情
    viewStruct(params){
        return Ajax({
            url: '/api/organ/view_struct',
            method: 'get',
            params: params
        });
    },
    //获取城市列表
    cityList(params){
        return Ajax({
            url: '/api/cbasics/cities',
            method: 'get',
            params: params
        });
    },

    //用户管理
    queryUser(params){
        return Ajax({
            url: '/api/newuser/query_user_list',
            method: 'get',
            data: params
        });
    },
    //角色管理列表
    roleList(params){
        return Ajax({
            url: '/api/newrole/role_list',
            method: 'get',
            data: params
        });
    },
    //角色权限分配树接口
    // roleTree(params){
    //     return Ajax({
    //         url: '/api/newrole/role_tree',
    //         method: 'get',
    //         data: params
    //     });
    // },
    //删除角色
    roleDel(params){
        return Ajax({
            url: '/api/newrole/role_del',
            method: 'post',
            data: params
        });
    },
    //新增角色
    roleAdd(params){
        return Ajax({
            url: '/api/newrole/role_add',
            method: 'post',
            data: params
        });
    }, //修改角色
    roleUpdate(params){
        return Ajax({
            url: '/api/newrole/role_update',
            method: 'post',
            data: params
        });
    },
    //项目驻场列表
    queryResidentList(params){
        return Ajax({
            url: '/api/resident/query_resident_list',
            method: 'get',
            data: params
        });
    },
    //项目驻场删除
    delResident(params){
        return Ajax({
            url: '/api/resident/del_resident',
            method: 'post',
            data: params
        });
    },
    //新增项目驻场
    addResident(params){
        return Ajax({
            url: '/api/resident/add_resident',
            method: 'post',
            data: params
        });
    },
    //修改项目驻场
    updateResident(params){
        return Ajax({
            url: '/api/resident/update_resident',
            method: 'post',
            data: params
        });
    },
    //项目驻场重置密码
    batchUpdateResident(params){
        return Ajax({
            url: '/api/resident/batch_update_resident',
            method: 'post',
            data: params
        });
    },
    //经纪人管理列表
    agentManageList(params){
        return Ajax({
            url: '/api/agentManage/list',
            method: 'get',
            data: params
        });
    },
    //经纪人管理批量充值
    bathRecharge(params){
        return Ajax({
            url: '/api/agentManage/bath_recharge',
            method: 'post',
            data: params
        });
    },
    //经纪人管理批量移除
    bathDelete(params){
        return Ajax({
            url: '/api/agentManage/bath_delete',
            method: 'post',
            data: params
        });
    },
    //经纪人管理经纪人资料
    agentManageUpdate(params){
        return Ajax({
            url: '/api/agentManage/agentManage_update',
            method: 'get',
            data: params
        });
    },
    //经纪人管理楼盘列表
    houseList(params){
        return Ajax({
            url: '/api/agentManage/houseList',
            method: 'get',
            data: params
        });
    },
    //经纪人开通管理楼盘列表
    BathHouseList(params){
        return Ajax({
            url: '/api/agentManage/bath_house_list',
            method: 'get',
            data: params
        });
    },
    //报备客服列表
    clientsList(params){
        return Ajax({
            url: '/api/clients/list',
            method: 'get',
            data: params
        });
    },
    //新房列表接口
    distNewHouses(params){
        return Ajax({
            url: '/api/dist_newHouses',
            method: 'get',
            data: params
        });
    },
    //新房查看接口
    distSeeNewHouse(params){
        return Ajax({
            url: '/api/dist_seeNewHouse',
            method: 'get',
            data: params
        });
    },
    //设置-修改密码
    distChangePwd(params){
        return Ajax({
            url: '/api/dist_changePwd',
            method: 'post',
            data: params
        });
    },
    //设置- 分销商11月改版：设置经纪人查看范围按钮状态接口
    distSetViewFlag(params){
        return Ajax({
            url: '/api/dist_setViewFlag',
            method: 'post',
            data: params
        });
    },
    getAllResources(params){//获取所有资源
        return Ajax({
            url: '/api/menu/list',
            method: 'get',
            data: params
        });
    },
    //报备客户-跟进
    updateClientInfo(params){
        return Ajax({
            url: '/api/clients/update_client_info',
            method: 'post',
            data: params
        });
    },
    //获取分销商资料
    distSeeDistributorInfo(params){
        return Ajax({
            url: '/api/dist_seeDistributorInfo',
            method: 'get',
            data: params
        });
    },
    //修改分销商资料
    distSaveDistributorInfo(params){
        return Ajax({
            url: '/api/dist_saveDistributorInfo',
            method: 'post',
            data: params
        });
    },
    //新盘查看
    distSeeLinkerSceneGroup(params){
        return Ajax({
            url: '/api/dist_seeLinkerSceneGroup',
            method: 'get',
            data: params
        });
    },
    //新增新盘
    distAddNewHouses(params){
        return Ajax({
            url: '/api/dist_addNewHouses',
            method: 'post',
            data: params
        });
    },
    //分销商明细
    distrReportList(params){
        return Ajax({
            url: '/api/distr_report/list',
            method: 'get',
            data: params
        });
    },
    //查看楼盘开通价格
    distSeeNewHouseAmount(params){
        return Ajax({
            url: '/api/dist_seeNewHouseAmount',
            method: 'get',
            data: params
        });
    },
    //上传图片
    distUploadFile(params){
        return Ajax({
            url: '/api/dist_uploadFile',
            method: 'post',
            data: params
        });
    },
    //上传图片
    distDeleteAllNewHouse(params){
        return Ajax({
            url: '/api/dist_deleteAllNewHouse',
            method: 'post',
            data: params
        });
    },
    //上下架状态修改
    distUpdateAllHouseShelfFlag(params){
        return Ajax({
            url: '/api/dist_updateAllHouseShelfFlag',
            method: 'post',
            data: params
        });
    },
    //设置佣金
    distSetAllHouseCommission(params){
        return Ajax({
            url: '/api/dist_setAllHouseCommission',
            method: 'post',
            data: params
        });
    },
    //分销商11月改版：查看楼盘默认开通价格接口
    distSeeNewHouseDefaultAmount(params){
        return Ajax({
            url: '/api/dist_seeNewHouseDefaultAmount',
            method: 'get',
            data: params
        });
    },
    //分销商11月改版：查看楼盘默认vip价格接口
    distSeeNewHouseVIPDefaultAmount(params){
        return Ajax({
            url: '/api/dist_seeNewHouseVIPDefaultAmount',
            method: 'get',
            data: params
        });
    },
    //分销商11月改版：查看楼盘默认开通价格接口
    distSetAllHouseAmount(params){
        return Ajax({
            url: '/api/dist_setAllHouseAmount',
            method: 'post',
            data: params
        });
    },
    // 分销商11月改版：查看套盘默认价格接口
    distSeeNewHouseDefaultPackage(params){
        return Ajax({
            url: '/api/dist_seeNewHouseDefaultPackage',
            method: 'get',
            data: params
        });
    },

    //
    distSetAllHousePackage(params){
        return Ajax({
            url: '/api/dist_setAllHousePackage',
            method: 'post',
            data: params
        });
    },
    // 新增相册分组
    distSaveLinkerSceneGroup(params){
        return Ajax({
            url: '/api/dist_saveLinkerSceneGroup',
            method: 'post',
            data: params
        });
    },
    // 保存相册信息接口
    distSaveLinkerAlbumOtherInfo(params){
        return Ajax({
            url: '/api/dist_saveLinkerAlbumOtherInfo',
            method: 'post',
            data: params
        });
    },
    //修改楼盘分组名称
        distEditLinkerSceneGroupName(params){
        return Ajax({
            url: '/api/dist_editLinkerSceneGroupName',
            method: 'post',
            data: params
        });
    },
    //上传分组
    distSaveLinkerScene(params){
        return Ajax({
            url: '/api/dist_saveLinkerScene',
            method: 'post',
            data: params
        });
    },
    //删除分组接口
    distDeleteLinkerSceneGroup(params){
        return Ajax({
            url: '/api/dist_deleteLinkerSceneGroup',
            method: 'post',
            data: params
        });
    },
    //查看楼盘相册全部
    distLinkerSceneList(params){
        return Ajax({
            url: '/api/dist_linkerSceneList',
            method: 'get',
            data: params
        });
    },
    //查看楼盘相册全部
    distSetAllHouseResident(params){
        return Ajax({
            url: '/api/dist_setAllHouseResident',
            method: 'post',
            data: params
        });
    },
    //批量设置vip价格
    distSetAllHouseVIPAmount(params){
        return Ajax({
            url: '/api/dist_setAllHouseVIPAmount',
            method: 'post',
            data: params
        });
    },
    //批量设置vip价格
    distEditNewHouses(params){
        return Ajax({
            url: '/api/dist_editNewHouses',
            method: 'post',
            data: params
        });
    },
    //批量导出楼盘
    distNewHousesAllExportExcel(params){
        return Ajax({
            url: '/api/dist_newHousesAllExportExcel',
            method: 'get',
            data: params
        });
    },
};
